﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace YXQ.Common.Meta
{
    public class Parameter
    {
        /// <summary>
        /// 值

        /// </summary>
        /// 
        public string Value { get; set; }
        /// <summary>
        /// 数据类型
        /// </summary>
        public DbType DType { get; set; }
        /// <summary>
        /// 参数 例如User 返回@User
        /// </summary>
        public string ValuePrm
        {

            get
            {
                if (_valuePrm != null)
                {
                    _valuePrm = "@" + _valuePrm;
                }
                return _valuePrm;
            }

            set
            {
                _valuePrm = value;

            }
        }

        private string _valuePrm;
    }
}
